package com.github.sbb.sherry.primitives.rules;

import org.apache.commons.jexl3.JexlBuilder;
import org.apache.commons.jexl3.JexlEngine;
import org.apache.commons.jexl3.JexlExpression;

public class JexlUtil {

  private static final JexlEngine JEXL = new JexlBuilder().cache(1000).strict(true).silent(false).create();

  public static JexlExpression createExpression(String expression) {
    return JEXL.createExpression(expression);
  }

}
